<div class="main_top">
	<ul class="pagenavi">
		<li><a href="/">首页</a></li>
		<li class="li2">企业搜索列表</li>
	</ul>
</div>
<div class="main_left">
	{{if $error != '' }}
		<div>
			<img src="{{$root_host}}/images/no_result.gif">
			<div class="noresult">
				<div style="clear:both; height:10px;"></div>
				<div class="stitle">未找到符合条件的企业，请尝试更换搜索关键字。</div>
				<ul>
					<li>1、尽量使用简洁的核心关键字查询 </li>
					<li>2、我们搜索是"关键字 空格 关键字"格式,如果你输入多个词连在一起,可能无法搜索到的</li>
					<li>3、如果还是没有您搜索的企业，那就赶紧去<a href="/add_cor.php">添加</a>吧！</li>
				</ul>
			</div>
		</div>
	{{else}}
	{{section name="loop" loop=$result}}
	<div class="cor_info">
		<div class="cor_info_inner">
			<div class="cor_name">
				<h1><a href="/corporation/{{$result[loop].id}}/" target="_blank">{{$result[loop].name}}</a></h1>
			</div>
			<div class="est_total"> 
				{{if $result[loop].estimate_total > 0 }}
					共有<em> <a href="/corporation/{{$result[loop].id}}/" target="_blank">{{$result[loop].estimate_total|default:0}}</a> </em>条评价 
				{{else}}
					暂无评价！
				{{/if}}
			</div>
			<div class="est_list">
				<dl class="clear">
					<dt><b>地址：</b></dt>
					<dd>{{$result[loop].address}}</dd>
				</dl>
				<dl class="clear">
					<dt><b>电话：</b></dt>
					<dd>{{$result[loop].tel}}</dd>
				</dl>
				{{if $result[loop].description != "..."}}
				<dl class="clear">
					<dt><b>简介：</b></dt>
					<dd>{{$result[loop].description}}<a target="_blank" href="/corporation/{{$result[loop].id}}/profile.html">【点击查看简介】</a></dd>
				</dl>
				{{/if}}
			</div>
			<div class="cor_photo">
				<img src="{{$result[loop].imgPath}}" title="{{$result[loop].name}}" width="150px" height="110px"/>
			</div>
			<div class="cor_est">
				<a href="/corporation/{{$result[loop].id}}/" target="_blank"><img src="{{$host_root}}/images/estimate.gif" title="我要点评"/></a>
			</div>
		</div>
	</div>
	{{/section}}
	<div class="fenye">
		{{$pageList}}
	</div>
	<div class="clear"></div>
	<div class="nores">
	没有找到想要的企业？请<a href="/add_cor.php"><img class="addImg" src="{{$host_root}}/images/addcor.gif"/></a>
	</div>
	{{/if}}
</div>
<!--main left end -->
<div class="main_right">
	<div class="index_search">
		<img src="images/index_search.gif" /><br/>
		<div class="index_search_1">
			<form name="mainform" method="post" action="search.php">
			<div class="index_search_2">我要搜：<input type="text" name="search_name" value="输入企业名称或地址"><span>搜搜其它IT企业的信息和点评</span></div>
			<div class="index_search_3"><input type="image" src="images/index_submit.gif"></div>
			</form>
		</div>
	</div>
	<div class="rank">
		<div class="header">企业热门排行</div>
		<ul>
			{{foreach from=$rank_rows key=key item=item}}
			<li><a href="/corporation/{{$item.id}}/" title="{{$item.name}}">{{$item.name}}</a></li>
			{{/foreach}}
		</ul>
	</div>
	<div class="rank">
		<div class="header">推荐企业</div>
		<ul>
			{{foreach from=$recom_rows key=key item=item}}
			<li><a href="/corporation/{{$item.recom_id}}/" title="{{$item.title}}">{{$item.title}}</a></li>
			{{/foreach}}
		</ul>
	</div>
</div>
<!--main right end-->
<div class="clear"></div>
</div>
<!--main end -->
<script type="text/javascript" src="/script/jquery.js"></script>
<script type="text/javascript" src="/script/common.js"></script>
<script>
	var orig = '输入企业名称或地址';
	$("input[name='search_name']").each(function(){
		$(this).focus(function(){
			if($(this).val() == orig){
				$(this).val('').css("color","#000");
			}
		}).blur(function(){
			if($(this).val() == ""){
				$(this).val(orig).css("color","#CCC");
			}
		})
	})
</script>